package com.zkw;

import java.util.*;
import java.util.function.Consumer;

/**
 * Created by Administrator on 2016/5/28 0028.
 */
public interface JustTest<T> {


    default void arraysDemo(){
        
    }

    default void forEach(Consumer<? super T> action) {
        Objects.requireNonNull(action);
        System.out.println();

    }

    public static void main(String[] args) {
        // create link list object
        LinkedList list = new LinkedList();

        // populate the list
        list.add(-18);
        list.add(40);
        list.add(-45);
        list.add(12);

        System.out.println("Max value is: " + Collections.max(list));

    }
}
